<?php
/* @var $this UserController */
/* @var $model User */

$this->breadcrumbs=array(
	'Users'=>array('index'),
	$model->name,
);

$this->menu=array(
	//array('label'=>'List User', 'url'=>array('index')),
	//array('label'=>'Create User', 'url'=>array('create')),
	//array('label'=>'Update User', 'url'=>array('update', 'id'=>$model->id)),
	//array('label'=>'Delete User', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
	//array('label'=>'Manage User', 'url'=>array('admin')),
);

    $baseUrl = Yii::app()->baseUrl; 
    $cs = Yii::app()->getClientScript();
    $cs->registerCssFile($baseUrl.'/css/viewStyle.css');
    $imageUrl = $baseUrl . "/../";
?>
<div class="one_column">
<h2>Thông tin tài khoản</h2>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		//'id',
		'name',
		'username',
		'email',
		//'password',
		'phone',
        'birthday',
		array(
            'label' => Yii::t('user','gender'),
            'value' => ($model->gender == 1)? 'Nam' : 'Nữ',
        ),
        array(
            'label' => 'Hình đại diện',
            'type'  => 'raw',
            'value' => CHtml::image($imageUrl . "images/avatar/" . $model->avatar_url,$model->name, array('width' => '100px')),
        ),
	),
)); ?>
</div>